import request from "@/utils/request";
import axios from 'axios'



export const uploadOssFile = async (file) => {

  var ossData = new FormData();
  ossData.append("upfile", file);
  let ossResult= await request.post('/upload/upload', ossData);
  if(ossResult.state==='ok'){
    return 'http://140.143.39.227'+ossResult.data.url;
  }else{
    return null;
  }

}
